<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文字无限循环效果</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-size: 'Poppins', sans-serif;
            
        }
        :root {
            --d: 25;
            --y: 200;
        }
        section {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            background-color: #111;
        }
        section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(transparent,transparent, #0005,#0004);
            z-index: 10000;
            pointer-events: none;
        }
        .scroll {
            width: calc(100% + 400px);
            left: -400px;
            display: flex;
            box-shadow: 0 15px 10px rgba(0,0,0,.5);
            transform: rotate(calc(var(--d) * 1deg)) translateY(calc(var(--y) * 1px));
        }
        .scroll div {
            background-color: #e9c804;
            color: #1d1104;
            font-size: 3em;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            font-weight: 600;
            white-space: nowrap;
            animation: animate 60s linear infinite;
            animation-delay:  -60s;
        }
        .scroll div:nth-child(2) {
            animation: animate-two 60s linear infinite;
            animation-delay:  -30s;
        }
        .center {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%); 
            color: red; 
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 0.1rem;
            text-shadow: 0 0 20px red,  0 0 25px red, 0 0 30px red;
            animation: animate-flash 2s ease-in-out infinite;
            opacity: 1;
        }
        @keyframes animate {
            0% {
                transform: translateX(100%)
            }
            100% {
                transform: translateX(-100%)
            }
        }
        @keyframes animate-two {
            0% {
                transform: translateX(0)
            }
            100% {
                transform: translateX(-200%)
            }
        }
        @keyframes animate-flash {
            14% {
                opacity: 1;
            }
            15% {
                opacity: 0;
            }
            84% {
                opacity: 0;
            }
            85% {
                opacity: 1;
            }
        }
    </style>
</head>
<body>
    <section>
        <div class="scroll" style="--d:20;--y:100">
            <div>
                <span>Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning!</span>
            </div>
            <div>
                <span>Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning!</span>
            </div>
        </div>
        <div class="scroll" style="--d:-30;--y:300">
            <div>
                <span>Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning!</span>
            </div>
            <div>
                <span>Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning!</span>
            </div>
        </div>
        <div class="scroll" style="--d:-15;--y:-200">
            <div>
                <span>Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning!</span>
            </div>
            <div>
                <span>Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning!</span>
            </div>
        </div>
        <div class="scroll" style="--d:15;--y:300">
            <div>
                <span>Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning!</span>
            </div>
            <div>
                <span>Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning!</span>
            </div>
        </div>
        <div class="scroll" style="--d:60;--y:500">
            <div>
                <span>Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning!</span>
            </div>
            <div>
                <span>Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning! Warning!</span>
            </div>
        </div>
        <span class="center">BOSS COMING!</span>
    </section>
</body>
</html>